

$(function () {
	
    //单据凭证
    var image1 = $("#imgofvoucher_hidden").val();
    if (image1) {
        var pictures = image1.split(",");
        for (var i in pictures) {
            var uri = pictures[i];
            if (/.+/.test(uri)) {
                var $imgEle = $("<img src='" + PicDomain + uri + "' data-picuri='" + uri + "'/>");
                $("#ctn_edit_product_pics").append($imgEle);
            }
        }
    }
	
    //返回
	$("[name='btn_goback_bill']").click(function(){
		window.location.href="/lgsBills";
	});
	//打印
	$("[name='btn_print_bill']").click(function(){
		var billId = $(this).data("bill-id");
		window.open("/lgsBills/printBill?billId="+billId);
	});
	//修改
	$("[name='btn_edit_bill']").click(function(){
		var billId = $(this).data("bill-id");
		window.location.href="/lgsBills/openUpdateBill?billId="+billId;
	});
    

    
});



